package sfmc.biz.daoImpl;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import sfmc.biz.dao.SfmcHolidayDao;
import sfmc.biz.vo.Sfmc_TB_HOLIDAY;

@Repository("SfmcHolidayDao")
public class SfmcHolidayDaoImpl implements SfmcHolidayDao{
	protected Log log = LogFactory.getLog(this.getClass());
	
	@Autowired
	private SqlMapClientTemplate sqlMapClientTemplate;
	   
	public List<Sfmc_TB_HOLIDAY> getHolidayList(Sfmc_TB_HOLIDAY dto) {
		return sqlMapClientTemplate.queryForList("getHolidayList",dto);
	}

	public int insertHoliday(Sfmc_TB_HOLIDAY dto) {
		Object temp = sqlMapClientTemplate.insert("insertHoliday", dto);
		return 0;
	}

	public int updateHoliday(Sfmc_TB_HOLIDAY dto) {
		return sqlMapClientTemplate.update("updateHoliday", dto);
	}

	public int deleteHoliday(Sfmc_TB_HOLIDAY dto) {
		return sqlMapClientTemplate.delete("deleteHoliday", dto);
	}
}
